import UnityEngine

class HitBox (MonoBehaviour): 
    name as string
    multiplier as single = 1
    public target as Health
    
    def Start ():
        # self.name = gameObject.name
        if target == null:
            target = transform.parent.GetComponent(Health)
    
    def Damage(dmg as single):
        target.Damage(dmg * multiplier)
    
    def Infect(cls as System.Type):
        target.gameObject.AddComponent(cls)
    
    def OnCollisionEnter(c as Collision):
        pass
    
